<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="dart:js_util library API docs, for the Dart programming language.">
  <title>dart:js_util library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  <!-- header placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li class="self-crumb">dart:js_util library</li>
  </ol>
  <div class="self-name">dart:js_util</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li class="self-crumb">dart:js_util library</li>
    </ol>
    
    <h5><span class="package-name">flutter_form_builder</span> <span class="package-kind">package</span></h5>
    <ol>
          <li class="section-title">Libraries</li>
          <li><a href="flutter_form_builder/flutter_form_builder-library.html">flutter_form_builder</a></li>
          <li class="section-title">Dart</li>
          <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
          <li class="section-subtitle">Core</li>
            <li class="section-subitem"><a href="dart-async/dart-async-library.html">dart:async</a></li>
            <li class="section-subitem"><a href="dart-collection/dart-collection-library.html">dart:collection</a></li>
            <li class="section-subitem"><a href="dart-convert/dart-convert-library.html">dart:convert</a></li>
            <li class="section-subitem"><a href="dart-core/dart-core-library.html">dart:core</a></li>
            <li class="section-subitem"><a href="dart-developer/dart-developer-library.html">dart:developer</a></li>
            <li class="section-subitem"><a href="dart-math/dart-math-library.html">dart:math</a></li>
            <li class="section-subitem"><a href="dart-typed_data/dart-typed_data-library.html">dart:typed_data</a></li>
          <li class="section-subtitle">VM</li>
            <li class="section-subitem"><a href="dart-ffi/dart-ffi-library.html">dart:ffi</a></li>
            <li class="section-subitem"><a href="dart-io/dart-io-library.html">dart:io</a></li>
            <li class="section-subitem"><a href="dart-isolate/dart-isolate-library.html">dart:isolate</a></li>
          <li class="section-subtitle">Web</li>
            <li class="section-subitem"><a href="dart-html/dart-html-library.html">dart:html</a></li>
            <li class="section-subitem"><a href="dart-js/dart-js-library.html">dart:js</a></li>
            <li class="section-subitem"><a href="dart-js_util/dart-js_util-library.html">dart:js_util</a></li>
    </ol>
  </div>

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-library">dart:js_util</span> library </h1></div>

    <section class="desc markdown">
      <p>Utility methods to efficiently manipulate typed JSInterop objects in cases
where the name to call is not known at runtime. You should only use these
methods when the same effect cannot be achieved with @JS annotations.
These methods would be extension methods on JSObject if Dart supported
extension methods.</p>
    </section>
    





    <section class="summary offset-anchor" id="functions">
      <h2>Functions</h2>

      <dl class="callables">
        <dt id="callConstructor" class="callable">
          <span class="name"><a href="dart-js_util/callConstructor.html">callConstructor</a></span><span class="signature">(<wbr><span class="parameter" id="callConstructor-param-constr"><span class="type-annotation"><a href="dart-core/Function-class.html">Function</a></span> <span class="parameter-name">constr</span>, </span> <span class="parameter" id="callConstructor-param-arguments"><span class="type-annotation"><a href="dart-core/List-class.html">List</a></span> <span class="parameter-name">arguments</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd>
          
                  
</dd>
        <dt id="callMethod" class="callable">
          <span class="name"><a href="dart-js_util/callMethod.html">callMethod</a></span><span class="signature">(<wbr><span class="parameter" id="callMethod-param-o"><span class="type-annotation">dynamic</span> <span class="parameter-name">o</span>, </span> <span class="parameter" id="callMethod-param-method"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">method</span>, </span> <span class="parameter" id="callMethod-param-args"><span class="type-annotation"><a href="dart-core/List-class.html">List</a></span> <span class="parameter-name">args</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd>
          
                  
</dd>
        <dt id="getProperty" class="callable">
          <span class="name"><a href="dart-js_util/getProperty.html">getProperty</a></span><span class="signature">(<wbr><span class="parameter" id="getProperty-param-o"><span class="type-annotation">dynamic</span> <span class="parameter-name">o</span></span> <span class="parameter" id="getProperty-param-name"><span class="type-annotation">dynamic</span> <span class="parameter-name">name</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd>
          
                  
</dd>
        <dt id="hasProperty" class="callable">
          <span class="name"><a href="dart-js_util/hasProperty.html">hasProperty</a></span><span class="signature">(<wbr><span class="parameter" id="hasProperty-param-o"><span class="type-annotation">dynamic</span> <span class="parameter-name">o</span></span> <span class="parameter" id="hasProperty-param-name"><span class="type-annotation">dynamic</span> <span class="parameter-name">name</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd>
          
                  
</dd>
        <dt id="instanceof" class="callable">
          <span class="name"><a href="dart-js_util/instanceof.html">instanceof</a></span><span class="signature">(<wbr><span class="parameter" id="instanceof-param-o"><span class="type-annotation">dynamic</span> <span class="parameter-name">o</span>, </span> <span class="parameter" id="instanceof-param-type"><span class="type-annotation"><a href="dart-core/Function-class.html">Function</a></span> <span class="parameter-name">type</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd>
          
                  
</dd>
        <dt id="jsify" class="callable">
          <span class="name"><a href="dart-js_util/jsify.html">jsify</a></span><span class="signature">(<wbr><span class="parameter" id="jsify-param-object"><span class="type-annotation">dynamic</span> <span class="parameter-name">object</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd>
          WARNING: performance of this method is much worse than other util
methods in this library. Only use this method as a last resort. <a href="dart-js_util/jsify.html">[...]</a>
                  
</dd>
        <dt id="newObject" class="callable">
          <span class="name"><a href="dart-js_util/newObject.html">newObject</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd>
          
                  
</dd>
        <dt id="promiseToFuture" class="callable">
          <span class="name"><a href="dart-js_util/promiseToFuture.html">promiseToFuture</a></span><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span><span class="signature">(<wbr><span class="parameter" id="promiseToFuture-param-jsPromise"><span class="type-annotation">dynamic</span> <span class="parameter-name">jsPromise</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Converts a JavaScript Promise to a Dart <a href="dart-async/Future-class.html">Future</a>. <a href="dart-js_util/promiseToFuture.html">[...]</a>
                  
</dd>
        <dt id="setProperty" class="callable">
          <span class="name"><a href="dart-js_util/setProperty.html">setProperty</a></span><span class="signature">(<wbr><span class="parameter" id="setProperty-param-o"><span class="type-annotation">dynamic</span> <span class="parameter-name">o</span></span> <span class="parameter" id="setProperty-param-name"><span class="type-annotation">dynamic</span> <span class="parameter-name">name</span></span> <span class="parameter" id="setProperty-param-value"><span class="type-annotation">dynamic</span> <span class="parameter-name">value</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd>
          
                  
</dd>
      </dl>
    </section>




  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <h5>dart:js_util library</h5>
    <ol>
    
    
    
    
    
      <li class="section-title"><a href="dart-js_util/dart-js_util-library.html#functions">Functions</a></li>
      <li><a href="dart-js_util/callConstructor.html">callConstructor</a></li>
      <li><a href="dart-js_util/callMethod.html">callMethod</a></li>
      <li><a href="dart-js_util/getProperty.html">getProperty</a></li>
      <li><a href="dart-js_util/hasProperty.html">hasProperty</a></li>
      <li><a href="dart-js_util/instanceof.html">instanceof</a></li>
      <li><a href="dart-js_util/jsify.html">jsify</a></li>
      <li><a href="dart-js_util/newObject.html">newObject</a></li>
      <li><a href="dart-js_util/promiseToFuture.html">promiseToFuture</a></li>
      <li><a href="dart-js_util/setProperty.html">setProperty</a></li>
    
    
    
    </ol>
  </div><!--/sidebar-offcanvas-right-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder
      3.8.2
  </span>

  <!-- footer-text placeholder -->
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- footer placeholder -->

</body>

</html>
